#include "clienthandle.h"

ClientHandle::ClientHandle(int sockfd, QObject *parent) : QObject{parent}
{
    this->socketDescriptor = sockfd;
}

void ClientHandle::working()
{
    socket = new QTcpSocket;
    socket->setSocketDescriptor(socketDescriptor);

    connect(socket,&QTcpSocket::readyRead,this,&ClientHandle::recvInfo);
}

void ClientHandle::recvInfo()
{
    qDebug() << socket->readAll();
}
